﻿
    using Maticsoft.BLL;
    using Maticsoft.Model;
    using System;
    using System.Web.UI.HtmlControls;

public partial class WebPage_DiaoCha_NewPage : SystemBBasePage
    {

        private Maticsoft.BLL.vote_question nvq = new Maticsoft.BLL.vote_question();

        private void getQuestion()
        {
            Maticsoft.Model.vote_question model = new Maticsoft.Model.vote_question();
            model.Title = base.Request.Form["title"].ToString();
            model.Type = base.Request.Form["type"].ToString();
            model.is_show = Convert.ToInt32(base.Request.Form["is_show"].ToString());
            model.order = Convert.ToInt32(base.Request.Form["order"].ToString());
            this.nvq.Add(model);
            base.Response.Redirect("DiaoCha_Wenti.aspx");
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.HeaderControl1.Select = "diaocha";
           
            this.DiaoCha1.Select = "Wenti";
            if (base.Request.HttpMethod == "POST")
            {
                this.getQuestion();
            }
        }
    }
